<template>
	<view>
		<order-list1 v-if='view_off == 1'></order-list1>
		<order-list2 v-if='view_off == 2'></order-list2>
	</view>
</template>

<script>
	import OrderList1 from './order-list1.vue';
	import OrderList2 from './order-list2.vue';
	export default {
		components: {
			OrderList1,
			OrderList2
		},
		onLoad(e) {
			this.view_off = 0
			
			let lrole = uni.getStorageSync('lrole');
			if (lrole.roleName == '驾驶员') {
				this.view_off = 1
			} else {
				this.view_off = 2
			}
			
		},
		data() {
			return {
				view_off: 0,
				
			}
		},

	
	}
</script>

<style>

</style>